<%-- 
    Document   : reporteNotasxCarrera
    Created on : 08-28-2012, 09:22:19 PM
    Author     : Susy
--%>

<%@include file="/include/header.jsp" %>
<%@include file="/include/headerBec.jsp" %>

<div class="content">
    <html:form styleId="reporteNotasxCarreraForm" action="/ReporteNotas">
        <html:hidden property="cmd" value="ConstruirReporteNotas"/>
        <table class="form">
            <caption class="titleSeg">Reporte de Notas Por Carrera</caption>
            <tr class="campos">
                <td class="label">Carrera:&nbsp;</td>
                <td class="control">
                    <html:select property="codCarrera" styleClass="tinput178">
                        <html:option value="">---Seleccione---</html:option>
                        <html:options collection="carrerasList" property="id.codCarrera"
                                    labelProperty="carrera" labelName="carrera" ></html:options>
                    </html:select>
               </td>
            <tr class="botones" align="center">
                <td colspan="2"><html:submit value="Generar Reporte" property="report"/></td>
            </tr>
        </table>
    </html:form>
    <table class="tablePres">
        <tr>
            <td>
                <logic:present name="reporte" scope="request">
                    <fieldset>
                        <legend>Reporte de Materias</legend>
                            <div id="tablaGastos" class="ui-widget-content ui-corner-all">
                                <display:table pagesize="10" name="reporte" requestURI="" class="results" style="width:100%;" id="results" export="true">
                                    <display:column property="nombre" title="Nombre Materia" style="text-align:center;" sortable="true" />
                                    <display:column property="notafinal" title="Nota Final" sortable="true" />
                                    <display:column property="annio" title="Annio" sortable="true" />
                                    <display:column property="matricula" title="Matricula Inscrita" sortable="true" />
                                </display:table>
                                <script>
                                    var table = document.getElementById("results");
                                    var rows = table.getElementsByTagName("tr");
                                    for (var i = 1; i < rows.length; i++) {
                                        rows[i].onmouseover = function() {
                                            this.className += ' hilite';
                                        }
                                        rows[i].onmouseout = function() {
                                            this.className = this.className.replace(' hilite', '');
                                        }
                                    }
                                </script>
                            </div>
                        </fieldset>
                </logic:present>
            </td>
        </tr>
    </table>
    <br />
    
</div>
<%@include file="/include/footerBec.jsp" %>
<%@include file="/include/footer.jsp" %>